public class CommonHandler{
    public CommonHandler(){
        NetMsgHandler.Instance.RegisterReq(NetMsgID.ScLogin, HandleLogin);
    }

    public void HandleLogin(byte[] buff){
        var data = NetPacket.Deserialize<SC_Login>(buff);
        if (data.Result == NetRetCode.Success)
        {
            TCPClient.Instance.isLogin = true;
        }
    }
}